/**   
* @Title: ShuangseqiuInfo.java 
* @Package com.esun.config 
* @Description: (双色球购彩相关信息) 
* @author City Jiangsy@500wan.com   
* @date 2011-6-20 下午07:57:44  
* copy right 深圳市易讯天空网络技术有限公司
*/
package com.esun.model;

import java.util.ArrayList;
import java.util.HashMap;


/** 
 * @ClassName: ShuangseqiuInfo 
 * @Description: (双色球购彩相关信息) 
 * @author City Jiangsy@500wan.com
 * @date 2011-6-20 下午07:57:44 
 *  
 */
public class ShuangseqiuInfo {
	private static ShuangseqiuInfo shuangseqiuInfo = null;
	public static ShuangseqiuInfo getShuangseqiuInfo(){
		if(shuangseqiuInfo == null){
			return shuangseqiuInfo = new ShuangseqiuInfo();			
		}else{
			return shuangseqiuInfo;
		}
	}
	private String termNum;
	
	private String timeLeft;
	
	private int redBallCount = 0;

	private int blueBallCount = 0;
	
	private int betCount;
	
	//------------------2012-02-22 added by kuroky---------------------//
	// 奖池金额
	private String lotteryPoolMoney ;
	// 是否加奖
	private boolean isAddMoney ;
	//------------------2012-02-22 added by kuroky---------------------//
	
	private ArrayList<HashMap<String, Object>> lotteryList = new ArrayList<HashMap<String, Object>>();
	
	public ArrayList<HashMap<String, Object>> getLotteryList() {
		return lotteryList;
	}

	/*public void setLotteryList(ArrayList<HashMap<String, Object>> lotteryList) {
		this.lotteryList = lotteryList;
	}*/

	public int getBetCount() {
		betCount = getRedBallCount()*(getRedBallCount()-1)*(getRedBallCount()-2)*(getRedBallCount()-3)*(getRedBallCount()-4)*(getRedBallCount()-5)*getBlueBallCount();
		betCount = betCount / (6 * 5 * 4 * 3 * 2 * 1);
		return betCount;
	}

	public void setBetCount(int betCount) {
		this.betCount = betCount;
	}

	public int getRedBallCount() {
		return redBallCount;
	}

	public void setRedBallCount(int redBallCount) {
		this.redBallCount = redBallCount;
	}

	public int getBlueBallCount() {
		return blueBallCount;
	}

	public void setBlueBallCount(int blueBallCount) {
		this.blueBallCount = blueBallCount;
	}

	public String getTermNum() {
		return termNum;
	}

	public void setTermNum(String termNum) {
		this.termNum = termNum;
	}

	public String getTimeLeft() {
		return timeLeft;
	}

	public void setTimeLeft(String timeLeft) {
		this.timeLeft = timeLeft;
	}

	//------------------2012-02-22 added by kuroky---------------------//
	public String getLotteryPoolMoney() {
		return lotteryPoolMoney;
	}

	public void setLotteryPoolMoney(String lotteryPoolMoney) {
		this.lotteryPoolMoney = lotteryPoolMoney;
	}

	public boolean isAddMoney() {
		return isAddMoney;
	}

	public void setAddMoney(boolean isAddMoney) {
		this.isAddMoney = isAddMoney;
	}
	//------------------2012-02-22 added by kuroky---------------------//
}
